package com.ls.fw.frame.api.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.ls.fw.frame.api.dao.ApiAccountDao;
import com.ls.fw.frame.api.model.ApiAccount;
import com.ls.fw.frame.api.model.example.ApiAccountExample;
import com.ls.fw.frame.api.vo.ApiAccountVo;
import com.ls.fw.frame.api.service.ApiAccountService;
import com.ls.fw.data.rdb.impl.dao.EntityDao;
import com.ls.fw.data.rdb.impl.service.EntityServiceAdapter;


/**
 * 
 * @author ls
 * 2016年06月10日 16时43分00秒
 */
@Service("apiAccountService")   
public class ApiAccountServiceImpl extends EntityServiceAdapter<ApiAccount,ApiAccountVo,java.lang.Long>  implements ApiAccountService{
	
    private ApiAccountDao apiAccountDao = null;
   
    @Resource
    public void setApiAccountDao(ApiAccountDao apiAccountDao) {
		this.apiAccountDao = apiAccountDao;
    }
 
	
	@SuppressWarnings("unchecked")
	@Override
	public <D extends EntityDao<ApiAccount, ApiAccountVo,java.lang.Long>> D getEntityDao(){
		return (D) apiAccountDao;
	}
	
	@Override
	public List<ApiAccount> selectByExample(ApiAccountExample example) {
		return this.apiAccountDao.getMapper().selectByExample(example);
	}


	@Override
	public ApiAccount selectOneByExample(ApiAccountExample example) {
		return this.apiAccountDao.getMapper().selectOneByExample(example);
	}

	@Override
	public ApiAccount selectOne(ApiAccount record) {
		return this.apiAccountDao.getMapper().selectOne(record);
	}


	@Override
	public List<ApiAccount> select(ApiAccount record) {
		return this.apiAccountDao.getMapper().select(record);
	}


	@Override
	public int deleteByExample(ApiAccountExample example) {
		return this.apiAccountDao.getMapper().deleteByExample(example);
	}


	@Override
	public int updateByExampleSelective(ApiAccount record,
			ApiAccountExample example) {
		return this.apiAccountDao.getMapper().updateByExampleSelective(record, example);
	}
}
